package pack1;

import javax.swing.text.html.Option;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
//maximize explorer window

import com.gargoylesoftware.htmlunit.javascript.host.Window;
import com.opera.core.systems.scope.protos.EcmascriptProtos.Object;
public class sprg3 {
	public static void main(String[] args) {
		
	
	WebDriver driver =new FirefoxDriver();
	//Option o =(Option) driver.manage();

		//	Window w= o.Window();
	//w.maximize();
	driver.manage().window().maximize();
	driver.get("http://127.0.0.1/login.do");
	
	By b=By.name("username");
	By b1=By.id("pwd");
		By.xpath("jp");
		
		WebElement un=driver.findElement(b);
	un.sendKeys("admin");
	WebElement un1=driver.findElement(b);
	un.sendKeys("manager");	
	}
}
